package util;


public class Constant {
	
	public static final String CONFIG_FILE_NAME="config.prop";
	
	public static final String PASSWORD = "password";
	
	public static final String EMAIL = "email";
	
	public static final String HOMEPAGE = "homepage", BDAY = "bday",
		SEX = "sex";
	
	public static final String ROLE = "role";
	
	public static final String USER_NAME = "username";
	
	public static final String USERID = "userid";
	
	public static final String CONTENT = "content", TARGET= "targedid", 
		MESSAGE= "messageid", LISTNAME = "listname";
	
	//Contents
	public static final String 	agb = "agb", avatar = "avatar", error = "error",
		hilfe ="hilfe", impress = "impress", index = "index", message = "message",
		messagelist = "messagelist", newsletter = "newsletter", regis = "regis",
		request = "request", worklist = "worklist", workplace = "workplace", profile = "profile",
		lists= "lists", admin = "admin", add_friend = "add_friend", search = "search",
		add_activity = "add_activity", add_group = "add_group", add_school = "add_school",
		add_work = "add_work", mitglied = "mitglied", security = "security", category = "category", 
		edit_translations = "edit_translations", group = "group", activity = "activity",
		school = "school", work = "work";
	
	public static class Content{
		public static final String COUNTRY="country", TOWN="town",TYPE="type",CATEGORY="category",WORK="work",AT_WORK="at_"+WORK,
			SCHOOL="school",SCHOLAR_AT="scholar_at",GROUP="group",GROUP_MEMBER=GROUP+"_member",ACTIVITY="activity",ACTIVITY_MEMBER=ACTIVITY+"_member",
			USERNAME="username";
		
		public static final String INPUT="input_",INPUT_COUNTRY=INPUT+COUNTRY,INPUT_COUNTRY_SHORT=INPUT+COUNTRY+"_short",INPUT_TOWN=INPUT+TOWN,
			INPUT_POSTAL_CODE=INPUT+"zip_code",INPUT_TYPE=INPUT+TYPE,INPUT_CATEGORY=INPUT+CATEGORY,INPUT_CATEGORY_ORDER=INPUT+CATEGORY+"_order",
			INPUT_WORK=INPUT+WORK,INPUT_AT_WORK_DIVISION=INPUT+AT_WORK+"_division",INPUT_AT_WORK_START=INPUT+AT_WORK+"_start",
			INPUT_AT_WORK_END=INPUT+AT_WORK+"_end",INPUT_SCHOOL=INPUT+SCHOOL,INPUT_SCHOLAR_AT=INPUT+SCHOLAR_AT,
			INPUT_START=INPUT+"start",INPUT_END=INPUT+"end",INPUT_GROUP=INPUT+GROUP,INPUT_GROUP_HOMEPAGE=INPUT+GROUP+"_homepage",
			INPUT_ACTIVITY=INPUT+ACTIVITY,INPUT_ACTIVITY_MEMBER=INPUT+ACTIVITY_MEMBER,INPUT_USERNAME=INPUT+USERNAME;
		
		public static final String SUBMIT="submit_",SUBMIT_COUNTRY=SUBMIT+COUNTRY,SUBMIT_TOWN=SUBMIT+TOWN,SUBMIT_TYPE=SUBMIT+TYPE,
			SUBMIT_CATEGORY=SUBMIT+CATEGORY,SUBMIT_WORK=SUBMIT+WORK,SUBMIT_AT_WORK=SUBMIT+AT_WORK,SUBMIT_SCHOOL=SUBMIT+SCHOOL,
			SUBMIT_SCHOLAR_AT=SUBMIT+SCHOLAR_AT, SUBMIT_GROUP=SUBMIT+GROUP,SUBMIT_GROUP_MEMBER=SUBMIT+GROUP_MEMBER,
			SUBMIT_ACTIVITY=SUBMIT+ACTIVITY,SUBMIT_ACTIVITY_MEMBER=SUBMIT+ACTIVITY_MEMBER,SUBMIT_USERNAME=SUBMIT+USERNAME;
		
		public static final String DELETE="delete_",DELETE_COUNTRY=DELETE+COUNTRY,DELETE_TOWN=DELETE+TOWN,DELETE_TYPE=DELETE+TYPE,
			DELETE_CATEGORY=DELETE+CATEGORY,DELETE_WORK=DELETE+WORK,DELETE_AT_WORK=DELETE+AT_WORK,DELETE_SCHOOL=DELETE+SCHOOL,
			DELETE_SCHOLAR_AT=DELETE+SCHOLAR_AT,DELETE_GROUP=DELETE+GROUP,DELETE_GROUP_MEMBER=DELETE+GROUP_MEMBER,
			DELETE_ACTIVITY=DELETE+ACTIVITY,DELETE_ACTIVITY_MEMBER=DELETE+ACTIVITY_MEMBER,DELETE_USERNAME=DELETE+USERNAME;
		
		public static final String ADD="add_",ADD_COUNTRY=ADD+COUNTRY,ADD_TOWN=ADD+TOWN,ADD_TYPE=ADD+TYPE,ADD_CATEGORY=ADD+CATEGORY,
			ADD_WORK=ADD+WORK,ADD_AT_WORK=ADD+AT_WORK,ADD_SCHOOL=INPUT+SCHOOL,ADD_SCHOLAR_AT=INPUT+SCHOLAR_AT,ADD_GROUP=ADD+GROUP,
			ADD_GROUP_MEMBER=ADD+GROUP_MEMBER,ADD_ACTIVITY=ADD+ACTIVITY,ADD_ACTIVITY_MEMBER=ADD+ACTIVITY_MEMBER,
			ADD_USERNAME=ADD+USERNAME;
	}
	
	public static class Type{
		public static final String USER_ROLE = "user_role_type", CONTACT="contact_type",
		SEX="sex_type", GROUP="group_type", WORK_POSITION="work_position_type", GRADUATION="graduation_type",
		SCHOOL="school_type", REQUEST="request_type",REQUEST_STATUS="request_status_type",
		ACTIVITY="activity_type", TABLE_DATA="table_data";
		public static class Category{
			public static final String SEX_MALE="male",SEX_FEMALE="female",SEX_UNKNOWN="unknown";
			public static final String ROLE_ADMIN="administrator", ROLE_MOD="moderator",
				ROLE_USER="user";
			public static final int ROLE_USER_ORDER = 1,ROLE_MOD_ORDER = 2,ROLE_ADMIN_ORDER = 3;
			public static final String CONTACT_ADMIN="admin",CONTACT_BEST_FRIEND="best_friend",
				CONTACT_PARTNER="partner",CONTACT_FRIEND="friend",
				CONTACT_COLLEAGUE="colleague",CONTACT_ACQUAINTANCE="acquaintance",
				CONTACT_IGNORE="ignore",CONTACT_UNKNOWN="unknown";
			public static final Integer CONTACT_ADMIN_ORDER=0, CONTACT_BEST_FRIEND_ORDER=1, CONTACT_PARTNER_ORDER=10,
				CONTACT_FRIEND_ORDER=20, CONTACT_COLLEAGUE_ORDER=30,CONTACT_ACQUAINTANCE_ORDER=40,
				CONTACT_IGNORE_ORDER=Integer.MAX_VALUE,CONTACT_UNKNOWN_ORDER=null;
		}
		public static class MemberShipTables {
			public static final String ACTIVITY = "activity", GROUP = "group",
				SCHOOL = "school", WORK = "work", FRIENDS = "friends", 
				MESSAGES = "messages";
		}
	}
}
